<html>
<body>
<h2 id="title">Hello World!</h2>
<input type="button" value="click" onclick="getUserId()">

</body>
<script type="text/javascript">

var value = "none";

function getUserId(){
	document.getElementById("title").innerHTML=value;
}

function setUserId(userId){
	value = userId;
}

</script>
</html>
